package com.green.entity.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExcelVO {

//    @ContentLoopMerge(eachRow = 2)
    @ColumnWidth(20)
    @ExcelProperty(value = "ID", index = 0)
    private Long id;
    @ExcelProperty(value = "字符串", index = 1)
    private String strCol;
    @ColumnWidth(15)
    @ExcelProperty(value = "浮点数字", index = 2)
    private BigDecimal decCol;
    @ExcelProperty(value = "日期时间", index = 3)
    @ColumnWidth(18)
    private LocalDateTime dateTimeCol;
}
